<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="RolViewDlg" widgetVar="RolViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewRolTitle}">

            <h:form id="RolViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{rolController.selected != null}">

                        <h:outputText value="#{bundle.ViewRolLabel_id}"/>
                        <h:outputText value="#{rolController.selected.id}" title="#{bundle.ViewRolTitle_id}"/>

                        <h:outputText value="#{bundle.ViewRolLabel_nombreRol}"/>
                        <h:outputText value="#{rolController.selected.nombreRol}" title="#{bundle.ViewRolTitle_nombreRol}"/>

                        <h:outputText value="#{bundle.ViewRolLabel_descripcion}"/>
                        <h:outputText value="#{rolController.selected.descripcion}" title="#{bundle.ViewRolTitle_descripcion}"/>
                        
                        <h:outputText value="#{bundle.ViewRolLabel_creationDate}"/>
                        <h:outputText value="#{rolController.selected.creationDate}" title="#{bundle.ViewRolTitle_creationDate}">
                            <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewRolLabel_createdBy}"/>
                        <h:outputText value="#{rolController.selected.createdBy}" title="#{bundle.ViewRolTitle_createdBy}"/>

                        <h:outputText value="#{bundle.ViewRolLabel_lastUpdateDate}"/>
                        <h:outputText value="#{rolController.selected.lastUpdateDate}" title="#{bundle.ViewRolTitle_lastUpdateDate}">
                            <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewRolLabel_lastUpdateBy}"/>
                        <h:outputText value="#{rolController.selected.lastUpdateBy}" title="#{bundle.ViewRolTitle_lastUpdateBy}"/>
                                                  
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="RolViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
